
#define GAME_SCREEN_RESOLUTION_640_480_24   1000
#define GAME_SCREEN_RESOLUTION_800_600_24   1001
#define GAME_SCREEN_RESOLUTION_1024_768_24  1002

#define GAME_SCREEN_RESOLUTION_640_480_32   1010
#define GAME_SCREEN_RESOLUTION_800_600_32   1011
#define GAME_SCREEN_RESOLUTION_1024_768_32  1012

#define KEYBOARD_BUFFER_SIZE	1024
#define KEYDOWN(name, key) (name[key] & 0x80?true:false)
#define KEYUP(name, key) (name[key] & 0x80?false:true)